package com.changcheng.project.ble_upgrade_recordinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.changcheng.project.ble_upgrade_recordinfo.mapper.BleUpgradeRecordinfoMapper;
import com.changcheng.project.ble_upgrade_recordinfo.domain.BleUpgradeRecordinfo;
import com.changcheng.project.ble_upgrade_recordinfo.service.IBleUpgradeRecordinfoService;
import com.changcheng.common.utils.text.Convert;

/**
 * 升级记录表Service业务层处理
 * 
 * @author dazhi
 * @date 2021-03-10
 */
@Service
public class BleUpgradeRecordinfoServiceImpl implements IBleUpgradeRecordinfoService 
{
    @Autowired
    private BleUpgradeRecordinfoMapper bleUpgradeRecordinfoMapper;

    /**
     * 查询升级记录表
     * 
     * @param id 升级记录表ID
     * @return 升级记录表
     */
    @Override
    public BleUpgradeRecordinfo selectBleUpgradeRecordinfoById(Long id)
    {
        return bleUpgradeRecordinfoMapper.selectBleUpgradeRecordinfoById(id);
    }

    /**
     * 查询升级记录表列表
     * 
     * @param bleUpgradeRecordinfo 升级记录表
     * @return 升级记录表
     */
    @Override
    public List<BleUpgradeRecordinfo> selectBleUpgradeRecordinfoList(BleUpgradeRecordinfo bleUpgradeRecordinfo)
    {
        return bleUpgradeRecordinfoMapper.selectBleUpgradeRecordinfoList(bleUpgradeRecordinfo);
    }

    /**
     * 新增升级记录表
     * 
     * @param bleUpgradeRecordinfo 升级记录表
     * @return 结果
     */
    @Override
    public int insertBleUpgradeRecordinfo(BleUpgradeRecordinfo bleUpgradeRecordinfo)
    {
        return bleUpgradeRecordinfoMapper.insertBleUpgradeRecordinfo(bleUpgradeRecordinfo);
    }

    /**
     * 修改升级记录表
     * 
     * @param bleUpgradeRecordinfo 升级记录表
     * @return 结果
     */
    @Override
    public int updateBleUpgradeRecordinfo(BleUpgradeRecordinfo bleUpgradeRecordinfo)
    {
        return bleUpgradeRecordinfoMapper.updateBleUpgradeRecordinfo(bleUpgradeRecordinfo);
    }

    /**
     * 删除升级记录表对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBleUpgradeRecordinfoByIds(String ids)
    {
        return bleUpgradeRecordinfoMapper.deleteBleUpgradeRecordinfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除升级记录表信息
     * 
     * @param id 升级记录表ID
     * @return 结果
     */
    @Override
    public int deleteBleUpgradeRecordinfoById(Long id)
    {
        return bleUpgradeRecordinfoMapper.deleteBleUpgradeRecordinfoById(id);
    }
}
